package com.递归2;

public class 阶乘 {
    public static class Solution{
        public static Integer chen(Integer num){
            if(num==1){
                return num;
            }
            return num*chen(num-1);
        }

        public static void main(String[] args) {
            System.out.println( chen(20));
        }
    }
}
